<%@ page import="java.util.List" %>
<%@ page import="com.po.Envelope" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%List<Envelope> envelopes = (List<Envelope>) request.getAttribute("envelopes");%>
<a href="<%=request.getContextPath()%>/function/openEnvelope">返回</a>
<br><br><br>
<table>
    <tr>
        <td>信封名字</td>
        <td>信封状态</td>
        <td>获赞总数</td>

    </tr>
    <%
        for(Envelope envelope : envelopes){
    %>
    <tr>
        <td><%=envelope.getName()%></td>
        <td><%=envelope.getState()%></td>
        <td><%=envelope.getTotal_like()%></td>
        <td><button onclick="window.location.href='<%=request.getContextPath()%>/note/createQuoteNote.jsp?envelope_id=<%=envelope.getEnvelope_id()%>'">选择</button></td>
    </tr>
    <%
        }
    %>
</table>


<style>
    table {
        width: 600px;
        margin: auto;
        border: pink 1px solid;
        border-spacing: 0;
        border-collapse: collapse;
    }

    td {
        border: pink 1px solid;
    }
    body{
        background-image: url("../picture/new.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center center;
        background-size: 100% 100%;
    }
</style>
